SYS.VimuaToolbar = SYS.extend(SYS.Module,{
	path:'',
	userId:'',
	emoticons:{},
	init:function(success)
	{
		this.toolbar();	
		SYS.vimuaToolbar=this;
		/*var that = this;
		SYS.load('3rdparty/jQuery/plugins/jquery.ifixpng2.js', function(){
			$(function(){$('.shadow').ifixpng();});
		});*/
		
		$(window).scroll(function(){
			SYS.vimuaToolbar.updatePosition();
		});
	},
	updatePosition:function()
	{
		var browser=navigator.appName;
		if ($.browser.msie && $.browser.version < 7)
		{		
			$('#viskybar').css('top',$(window).scrollTop());
		}
	},	
	toolbar:function()
	{
		var that = this;
		$('#viskybar .vkb_less .left a[href="#more"]').toggle(
			function(){
				$('#viskybar .vkb_more').slideDown();
				$(this).html('Thu gọn <img src="'+staticURL+that.path+'/+i/more_up.gif" alt="Less" />');
				$('#vimuachat_holder').css('top','56px');
				$('.banner-wrap').css('margin-top','86px');
			},
			function(){
				$('#viskybar .vkb_more').slideUp('fast');
				$(this).html('Xem thêm <img src="'+staticURL+that.path+'/+i/more_down.gif" alt="More" />');
				$('#vimuachat_holder').css('top','19px');
				$('.banner-wrap').css('margin-top','19px');
			}
		);
		$('#viskybar .vkb_more .column1 dl dt').mouseover(function(){
			var ServiceDesc = $(this).next('dd').html();
			$('#viskybar .vkb_more .column2 p.desc').empty().text(ServiceDesc);
			//$('#viskybar .vkb_more .column2 p.desc');
		});
		$('#viskybar .vkb_more .column1 dl dt a[href="#more"]').click(function(){
			$('#viskybar .vkb_more .column1 dl dt .pieholder ul').toggle();
		});
		//$('#viskybar .vkb_more .column1 dl dt .pieholder ul').mouseout(function(){
			//$(this).hide();
		//});
		
	}
});